using _1GrpcTypes.Services;

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddGrpc();

var app = builder.Build();

// 版本服务
// 如果合理，请避免中断性变更。
// 除非进行中断性更改，否则请勿更新版本号。
// 进行中断性变更时，请务必更新版本号。
app.MapGrpcService<GreeterServiceV1>();
app.MapGrpcService<GreeterServiceV2>();
app.MapGet("/", () => "Communication with gRPC endpoints must be made through a gRPC client. To learn how to create a client, visit: https://go.microsoft.com/fwlink/?linkid=2086909");

app.Run();
